import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  routes: [
    { // 首页
      path: '/',
      name: 'Index',
      component: resolve => require(['./Index.vue'], resolve)
    },
    { // 首页
      path: '*',
      name: 'Index',
      component: resolve => require(['./Index.vue'], resolve)
    },
    {
      path: '/nav1',
      name: 'Nav1',
      component: resolve => require(['./Nav1.vue'], resolve)
    },
    {
      path: '/nav2',
      name: 'Nav2',
      component: resolve => require(['./Nav2.vue'], resolve)
    },
    {
      path: '/nav3',
      name: 'Nav3',
      component: resolve => require(['./Nav3.vue'], resolve)
    }
  ]
})
